<div id="main">

<% form_for :user, :url => { :action => "update", :id => @user.id} do |form| %>
       <%= render :partial => 'form', :object => form  %>  
<br> 
 <%= submit_tag "Save"  %> &nbsp;
<%= link_to "cancel", {:action => "show", :id => @user.id}, :class => "cancel" %>

<% end %>
</div>


<div id="sub">
  <div>
    <h3>User Menu</h3>
    <ul>
      <li><%= link_to("My Books", :controller => "user", :action => "mybooks")%></li>
      <li><%= link_to("Add a Book", :controller => "book", :action => "new")%></li>
      <li><%= link_to("Match Maker", :controller => "user", :action => "mymatch")%></li>
      <li><%= link_to("My Offers", :controller => "user", :action => "offers")%></li>
    </ul>
  </div>
  
</div>